//随机生成一个三位数，输出每一位上的数字（空格分开）

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{
	int n,n3,n2,n1;
	srand(time(0));
	n = rand()%900+100;
	n3=n/100;
	n2=(n/10)%10;
	n1=n%10;
	printf("%d,%d,%d,%d\n",n,n3,n2,n1);

	return 0 ;
}

//diwutiantang@diwutiantang-VirtualBox:~/snap/lc/121516/xunhuan02$ ./4
//207,2,0,7
//diwutiantang@diwutiantang-VirtualBox:~/snap/lc/121516/xunhuan02$ ./4
//776,7,7,6
//diwutiantang@diwutiantang-VirtualBox:~/snap/lc/121516/xunhuan02$ ./4
//829,8,2,9
//diwutiantang@diwutiantang-VirtualBox:~/snap/lc/121516/xunhuan02$ ./4
//244,2,4,4

